package com.zzx.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 生产单表
 * @TableName t_product_order
 */
@TableName(value ="t_product_order")
@Data
public class TProductOrder extends BaseEntity implements Serializable {
    /**
     * 生产单ID
     */
    @ApiModelProperty("生产单ID")
    @TableId
    private Long productOrderId;

    /**
     * 生产单号
     */
    @ApiModelProperty("生产单号")
    @TableField("product_order_num")
    private String productOrderNum;

    /**
     * 生产单分类
     */
    @ApiModelProperty("生产单分类")
    @TableField("product_order_type")
    private String productOrderType;


    /**
     * 备注
     */
    @ApiModelProperty("备注")
    @TableField("mark")
    private String mark;

    /**
     * 要求
     */
    @ApiModelProperty("要求")
    @TableField("required")
    private String required;

    @ApiModelProperty("产品单产品ID")
    @TableField(exist = false)
    private Long productOrderProductId;

    @ApiModelProperty("产品ID")
    @TableField(exist = false)
    private Long productId;

    @ApiModelProperty("颜色")
    @TableField(exist = false)
    private String productColor;

    @ApiModelProperty("尺码")
    @TableField(exist = false)
    private String productSize;

    @ApiModelProperty("名称")
    @TableField(exist = false)
    private String productName;

    @ApiModelProperty("数量")
    @TableField(exist = false)
    private Integer countNum;

    @ApiModelProperty("产品单-下发部门关系")
    @TableField(exist = false)
    @JsonProperty("tProductOrderDepts")
    private List<TProductOrderDept> tProductOrderDepts;


    @ApiModelProperty("产品单-产品关系")
    @TableField(exist = false)
    @JsonProperty("tProductOrderProducts")
    private List<TProductOrderProduct> tProductOrderProducts;

}
